home *** CD-ROM | disk | FTP | other *** search
- Path: admaix.sunydutchess.edu!ub!newserve!rebecca!rpi!not-for-mail
- From: ENGR@GSSI.mv.com (Michael Furman)
- Newsgroups: comp.lang.c++,comp.lang.c++.moderated
- Subject: Re: Q: stack corrupted before main()?
- Date: 8 Feb 1996 14:55:00 -0000
- Organization: GSSI
- Sender: cppmods@netlab.cs.rpi.edu
- Approved: kanze@lts.sel.alcatel.de
- Message-ID: <4fd2s4$7t3@netlab.cs.rpi.edu>
- References: <4f8423$kp9@netlab.cs.rpi.edu>
- NNTP-Posting-Host: netlab.cs.rpi.edu
- X-Original-Date: Thu, 8 Feb 1996 14:23:38 GMT
-
- In article <4f8423$kp9@netlab.cs.rpi.edu>, jaceks@stud.unit.no says...
- >
- >The project I am currently working on is exhibiting the following behavior:
- the
- >stack is corrupted even before control enters main(). That is, when I run it
- >under a debugger and view the stack, it shows names of non-existent
- functions
- >..... snip .....
- >I am quite confident that the stack is corrupted before any code (or rather
- MY
- >code) is exectued. I do not, for example, have any global instances of
- classes,
- >whose constructors would be executed before main().
-
- I would say it may be one of the following:
-
- 1. You program contains global/static instance of class with constructor
- (in spite of you don't believe it). And it corrupts stack.
- 2. Something inconsistent in your project files (corrupted .obj file(s),
- too low stack size, e.t.c).
- 3. Broken compiler/library.
-
- I would suggest:
- - check (2) by checking all project parameters (turn on all diagnostics,
- like checking stack overflow e.t.c) and rebilding all staff.
- - check (1). If there is no lack - switch debugger into ASM mode
- (use another debugger if the one you are using can't) ang go through
- sturtup code.
-
-
-
- - --
- <<<<<<<< This is a copy of post to the newsgroup >>>>>>>>
- - ---------------------------------------------------------------
- Michael Furman, (603)893-1109
- Geophysical Survey Systems, Inc. fax:(603)889-3984
- 13 Klein Drive - P.O. Box 97 engr@gssi.mv.com
- North Salem, NH 03073-0097 71543.1334@compuserve.com
- - ---------------------------------------------------------------
-
-
- [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
- [ Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm ]
- [ Moderation policy: http://www.connobj.com/cpp/guide.htm ]
- [ Comments? mailto:c++-request@netlab.cs.rpi.edu ]
-